<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Resume</title>
    <!-- Bootstrap -->
    <link rel="stylesheet" th:href="@{/css/resume.css}">
    <link th:insert="common/head :: commonheader">
<!--    <script>-->


</head>
<!--<body class="login-body">-->

<body style="background-color: #F5F6FA">

<!--start_daohang -->
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div th:insert="common/head :: header">
            </div>
        </div>
    </div>
</div>

<!-- end_daohang -->

<!-- start_body -->
<div class="container">
    <div class="row clearfix">
        <!-- 开始_基本信息 -->
        <div class="col-md-12 column">
            <div class="col-md-2 " style="background-color: #ffffff; padding-bottom: 52px;">
                <div class="tou">
                    <div class="tou_img">
                        <a data-toggle="modal" data-target="#updateUserImg">
                            <img th:src="@{'/user/' + ${session.user.userImg}}" class="img-responsive" alt="" style="border: 2px #eeeeee solid ">
                        </a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点击修改头像
                    </div>
                </div>
            </div>
            <div class="base" id="information1">
                <div class="col-md-6 column" style="background-color: #ffffff; padding-bottom: 20px;">
                    <h2>基本信息</h2>
                    <div class="basicShow">
                            <span><span style="font-size: 24px; font-weight: bold">账号:[[${session.user.userName}]]</span><br>
                                <div th:if="${session.user.realName != null}">
                                    <span th:if="${session.user.realName != null}">真实姓名:[[${session.user.realName}]]</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <span th:if="${session.user.sex != null}">
                                        性别: <span th:if="${session.user.sex == 0}">男</span>
                                             <span th:if="${session.user.sex == 1}">女</span>
                                    </span><br>
                                    <span th:if="${session.user.phone != null}">手机号:[[${session.user.phone}]]</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <span th:if="${session.user.age != null}">年龄:[[${session.user.age}]]</span>
                                </div>
                                <div th:if="${session.user.realName == null}">
                                    您的个人信息尚未完善,赶紧去完善吧！
                                </div>
							</span>
                    </div>
                    <div class="basicShow">
                        <button id="basicShow_btn" class="btn" value="修改">修改个人信息</button>
                    </div>
                </div>

                <div class="col-md-4 " style="background-color: #ffffff; height: 255px;"></div>
            </div>
            <div class="base_info hide" id="information2">
                <div class="col-md-6 column" style="background-color: #ffffff; height: 259px;">
                    <h2>基本信息</h2>
                    <form th:action="@{/user/updateUser}" method="post">
                        <div class="form-group">
                            <div>
                                <label class="col-sm-2 control-label">真实姓名</label>
                                <div class="col-sm-4">
                                    <input type="text" name="realName" class="form-control" th:value="${session.user.realName}" required>
                                </div>
                            </div>
                            <div>
                                <label class="col-sm-2 control-label">年龄</label>
                                <div class="col-sm-4">
                                    <input type="text" name="age" class="form-control" th:value="${session.user.age}" required>
                                </div>
                            </div>
                            <div>
                                <label class="col-sm-2 control-label">手机号</label>
                                <div class="col-sm-4">
                                    <input type="text" name="phone" class="form-control" th:value="${session.user.phone}" required>
                                </div>
                            </div>
                            <div class="col-sm-offset-2 col-sm-12">
                                <div class="radio">
                                    <label class="checkbox-inline">
                                        <input type="radio" name="sex" th:value="0" th:checked="${session.user.sex == 0}" required>男
                                    </label>
                                    <label class="checkbox-inline">
                                        <input type="radio" name="sex" th:value="1" th:checked="${session.user.sex == 1}" required>女
                                    </label>
                                </div>
                            </div>
                            <div>
                                <div class="col-md-2">
                                </div>
                                <div class="col-md-3">
                                    <input type="submit" class="form-control" value="保存">
                                </div>
                                <div class="col-md-2"></div>
                                <div class="col-md-3">
                                    <input type="submit" class="form-control" id="base_defo" value="取消">
                                </div>
                                <div class="col-md-2">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-md-4 column" style="background-color: #ffffff; height: 259px;"></div>
            </div>
        </div>
        <!--结束_基本信息 -->

        <div class="col-md-12 column">
            <ul id="myTab" class="nav nav-tabs">
                <li>
                    <a href="#card" data-toggle="tab">
                        我的找活明信片
                    </a>
                </li>
                <li>
                    <a href="#company" data-toggle="tab">
                        我的公司
                    </a>
                </li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <!--个人-->
                <div class="tab-pane fade" id="card">
                    <!-- 开始_我的找活名片 -->
                    <div class="col-md-12" style="margin-top: 10px; background-color: #ffffff;" th:if="${employeeWork == null}">
                        <h3>我的找活名片</h3>
                        <div class="mp_Add gonggong" id="mp1">
                            请您完善找活明信片，<br>名片越完善，找活越容易！<br>
                            <input type="submit" value="完善明信片" id="mp_bt" class="btn_save btn btn-success" style="margin-bottom: 10px;">
                        </div>
                        <div class="row mp_show hide clearfix" id="mp2">
                            <div class="text-right">
                                <button id="m_c" class="btn_mp btn" >取 消</button>
                            </div>
                            <form class="education_Form" th:action="@{/addEmployeeWork}" method="post">
                                <div class="form-group col-md-12">
                                    <label for="one" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="one" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;">所属工种:</label>
                                    <div class="col-sm-10">
<!--                                        data-toggle="modal" data-target="#addExpectedWork"-->
                                        <input type="text" data-toggle="modal" data-target="#expectedWork" class="form-control" id="one" name="expectedWork" style="margin-top: 0px; margin-left: 0px;" placeholder="所属工种 ">
                                    </div>
                                </div>
                                <div class="form-group col-md-12 ">
                                    <label for="one" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="oneo " class="col-sm-1 control-label " style="padding-right: 0px; margin-top: 5px;">工作性质:</label>
                                    <div class="col-sm-10 ">
                                        <select class="form-control " id="oneo " name="workNature">
                                            <option value="0">兼职</option>
                                            <option value="1">长期工</option>
                                            <option value="2">高级工</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-1 control-label" style="padding-right: 0px;"><label class="control-label" style="padding: 0px;">地区</label></div>
                                    <div class="col-sm-6 form-inline" data-toggle="distpicker">
                                        <select class="form-control" name="province"></select>
                                        <select class="form-control" name="city"></select>
                                    </div>
                                    <div class="col-sm-5"></div>
                                </div>
                                <div class="form-group col-md-12 ">
                                    <label for="one" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="three " class="col-sm-1 control-label " style="padding-right: 0px; margin-top: 5px;">人员构成:</label>
                                    <div class="col-sm-10 ">
                                        <select class="form-control " id="three " name="staffComposition">
                                            <option value="0">个人</option>
                                            <option value="1">班组</option>
                                            <option value="2">施工队</option>
                                            <option value="3">突击队</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group col-md-12 ">
                                    <label for="one" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="five " class="col-sm-1 control-label " style=" padding-right: 0px; margin-top: 5px;">自我介绍:</label>
                                    <div class="col-sm-10 ">
                                        <textarea class="form-control " rows="3 " id="five " name="myselfDescribe" style="resize: none" placeholder="请简要介绍您自己(比如您会做什么，工作经历，期望工资等)，有助于您更快找到合适的工作。 "></textarea>
                                    </div>
                                </div>
                                <div class="form-group col-md-12 ">
                                    <div style="display: inline-block; ">
                                        <input type="submit" value="保 存 " class="btn_save btn btn-success" style="margin-left: 500px">
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- 结束_我的找活名片 -->
                    <!--显示明信片信息-->
                    <div class="col-md-12" style="background-color: #ffffff;" th:if="${employeeWork != null}">
                        <h3>工作信息</h3>
                        <table>
                            <tbody>
                            <tr>
                                <td>
                                    <img th:src="@{'/user/' + ${session.user.userImg}}" alt="" style="height: 40px; width: 40px;margin-right: 5px;padding-left: 0px;margin-left: 0px;">
                                    [[${session.user.realName}]] * <span th:if="${session.user.sex == 0}">男</span><span th:if="${session.user.sex == 1}">女</span>
                                </td>
                                <td >
                                    <button style="margin-left: 860px;" data-toggle="modal" data-target="#updateEmployeeWork" class="btn">修改</button>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>所属工种:</b>
                                    <span th:text="${employeeWork.expectedWork}"></span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>工作性质:</b>
                                    <span th:if="${employeeWork.workNature == 0}">兼职</span>
                                    <span th:if="${employeeWork.workNature == 1}">长期工</span>
                                    <span th:if="${employeeWork.workNature == 2}">高级工</span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>期望地区:</b> <span th:text="${employeeWork.getAddress()}"></span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>人员构成:</b>
                                    <span th:if="${employeeWork.staffComposition == 0}">个人</span>
                                    <span th:if="${employeeWork.staffComposition == 1}">班组</span>
                                    <span th:if="${employeeWork.staffComposition == 2}">施工队</span>
                                    <span th:if="${employeeWork.staffComposition == 3}">突击队</span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>手机号码:</b> <span th:text="${session.user.phone}"></span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p><b>自我介绍:</b></p>
                                    <p th:text="${employeeWork.myselfDescribe}" style="font-size: large;"></p>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                    </div>
                    <!--开始_项目经验 -->
                    <div class="col-md-12 " style="margin-top: 5px; background-color: #ffffff;">
                        <h3 style="margin-top: 12px;">项目经验
                            <button class="btn" data-toggle="modal" data-target="#addProject" style="margin-left: 895px;">添加项目经验</button>
                        </h3>
                    </div>
                    <!--显示项目经验信息-->
                    <div th:if="${!employeeProjects.isEmpty()}">
                        <div  class="col-sm-12 col-md-12" th:each="employeeProject : ${employeeProjects}" style="border: 1px #eee solid; background-color: #ffffff">
                            <h3><p th:text="${employeeProject.projectName}"></p></h3>
                            <div>
                                <span>工作时间</span>
                                <span>:</span>
                                <div>[[${employeeProject.startTime}]] 到 [[${employeeProject.endTime}]]</div>
                            </div>
                            <div>
                                <span>项目介绍</span>
                                <span>:</span>
                                <div th:text="${employeeProject.projectDescribe}"></div>
                            </div>
                            <div class="text-right" style="margin-bottom: 10px;">
                                <a id="deleteEmployeeProject" class="btn btn-default" th:href="@{'/deleteProject/' + ${employeeProject.id}}" role="button">删除</a>
                            </div>
                        </div>

                    </div>


                    <div class="col-md-12 column" th:if="${employeeProjects.isEmpty()}">
                        暂无数据
                    </div>
                    <!--结束_项目经验 -->
                </div>
                <!--公司-->
                <div class="tab-pane fade" id="company">
                    <!--创建公司信息-->
                    <div class="col-md-12" style="margin-top: 10px; background-color: #ffffff;" th:if="${company == null}">
                        <h3>完善公司信息</h3>
                        <div class="mp_Add gonggong" id="myCompany01">
                            若您是一个创业者<br>完善公司信息募集人才吧！<br>
                            <input type="submit" value="填写公司信息" id="c_bt" class="btn_save btn btn-success" style="margin-bottom: 10px;">
                        </div>
                        <div class="row mp_show hide clearfix" id="myCompany02">
                            <div class="text-right">
                                <button id="c_c" class="btn_mp btn" >取 消</button>
                            </div>
                            <form class="education_Form" th:action="@{/addCompany}" method="post">
                                <div class="form-group col-md-12">
                                    <label for="c_name" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="c_name" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;">公司名称:</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="c_name" name="companyName" style="margin-top: 0px; margin-left: 0px;" placeholder="公司名称 ">
                                    </div>
                                </div>

                                <div class="form-group col-md-12">
                                    <label for="c_address" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <div class="col-sm-1 control-label" style=" padding-right: 0px; margin-top: 5px;">
                                        <label for="c_address" class="control-label" style="padding: 0px;">
                                            公司地址:
                                        </label>
                                    </div>
                                    <div class="col-sm-6 form-inline" data-toggle="distpicker" id="c_address">
                                        <select class="form-control" name="province"></select>
                                        <select class="form-control" name="city"></select>
                                    </div>
                                    <div class="col-sm-5"></div>
                                </div>

                                <div class="form-group col-md-12 ">
                                    <label for="c_phone" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="c_phone" class="col-sm-1 control-label " style="padding-right: 0px; margin-top: 5px;">咨询电话:</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="c_phone" name="telephone" style="margin-top: 0px; margin-left: 0px;" placeholder="咨询电话 ">
                                    </div>
                                </div>

                                <div class="form-group col-md-12 ">
                                    <label for="c_HR" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="c_HR" class="col-sm-1 control-label " style="padding-right: 0px; margin-top: 5px;">HR:</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="c_HR" name="hrName" style="margin-top: 0px; margin-left: 0px;" placeholder="HR">
                                    </div>
                                </div>

                                <div class="form-group col-md-12 ">
                                    <label for="c_describe" class="col-sm-1 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;"></label>
                                    <label for="c_describe" class="col-sm-1 control-label " style=" padding-right: 0px; margin-top: 5px;">公司描述:</label>
                                    <div class="col-sm-10 ">
                                        <textarea class="form-control " rows="3 " id="c_describe" name="companyDescribe" style="resize: none" placeholder="请简要您的公司的做什么的，需要什么人才，有助于您更快找到合适的工作。 "></textarea>
                                    </div>
                                </div>

                                <div class="form-group col-md-12 ">
                                    <div style="display: inline-block; ">
                                        <input type="submit" value="保 存 " class="btn_save btn btn-success" style="margin-left: 500px">
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!--显示公司信息-->
                    <div class="col-md-12" style="margin-top: 10px; background-color: #ffffff;" th:if="${company != null}">
                        <h3>公司信息</h3>
                        <table>
                            <tr>
                                <td>
                                    <b>公司名称:</b> <span th:text="${company.getCompanyName()}"></span>
                                </td>
                                <td>
                                    <button style="margin-left: 860px;" data-toggle="modal" data-target="#updateCompany" class="btn">修改</button>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>公司地址:</b> <span th:text="${company.getCompanyAddress()}"></span>
                                </td>
                            </tr>
                            <tr>
                                <td><b>公司电话:</b> <span th:text="${company.getTelephone()}"></span></td>
                            </tr>
                            <tr>
                                <td><b>HR:</b> <span th:text="${company.getHrName()}"></span></td>
                            </tr>
                            <tr>
                                <td>
                                    <p><b>公司描述:</b></p>
                                    <p th:text="${company.getCompanyDescribe()}"></p>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!--发布的招工信息-->
                    <div class="col-md-12 " style="margin-top: 10px; background-color: #ffffff;" th:if="${company != null}">
                        <h3 style="margin-bottom: 20px;">招工信息
                            <a class="btn btn-default" th:href="@{/toCompanyWorkPublish}" role="button" style="float: right;">发布招工信息</a>
                        </h3>
                    </div>
                    <!--显示招工信息-->
                    <div class="media well findwork-work col-md-12" style="margin-top: 5px; margin-bottom: 0px; background-color: #ffffff;"  th:each="work:${companyWorks}">
                        <div class="media-body">
                            <h4 class="media-heading">
                                <b th:text="${work.getTitle().length()<14?work.getTitle():work.getTitle().substring(0,14)+'...'}"></b>
                                <div class="text-right" style="float: right"><span class="glyphicon glyphicon-fire" style="color: red" th:if="${work.getState()==0}">正在招</span></div>
                                <div class="text-right" style="float: right"><span class="glyphicon glyphicon-fire" style="color: #6b6969" th:if="${work.getState()==1}">已招满</span></div>
                            </h4>
                            <div th:text="${work.getWorkDescribe().length()<100?work.getWorkDescribe():work.getWorkDescribe().substring(0,100)}+'...'" style="height: 30px;">
                            </div>
                            <div class="media" >
                                <a href="#" class="pull-left"><img th:src="@{'/user/' + ${work.getUser().getUserImg()}}" height="35" width="35" class="media-object" alt='' /></a>
                                <div class="media-body">
                                    <div style="margin-top: 8px; padding: 0px;">联系人:
                                        <div style="display: inline-block" th:text="${work.getUser().getRealName()}">
                                        </div>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布时间:
                                        <div style="display: inline-block" th:text="${work.getPublishTime()}"></div>
                                        <a id="updateStatu01" th:if="${work.getState()==0}" class="btn btn-default" th:href="@{'/updateState0/' + ${work.getId()}}" role="button" style="float:right">修改招工状态</a>
                                        <a id="updateStatu02" th:if="${work.getState()==1}" class="btn btn-default" th:href="@{'/updateState1/' + ${work.getId()}}" role="button" style="float:right">修改招工状态</a>
                                        <a id="deleteCompanyWork" class="btn btn-default" th:href="@{'/deleteCompanyWork/' + ${work.getId()}}" role="button" style="float:right">删除</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- start_footer -->
    <footer th:insert="common/head :: footer">

    </footer>
    <!-- end_footer -->



    <!--修改明信片的模态框-->
    <div class="modal fade" id="updateEmployeeWork" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="ModalLabel01">修改明信片</h4>
                </div>
                <div class="modal-body" style="height: 400px;">
                    <form class="education_Form" th:action="@{/updateEmployeeWork}" method="post" th:if="${employeeWork != null}">
                        <input type="hidden" name="id" th:value="${employeeWork.id}">
                        <input type="hidden" name="publishTime" th:value="${employeeWork.publishTime}">
                        <div class="form-group col-md-12">

                            <label for="oneUpdate" class="col-sm-2 control-label la_b" style="padding-right: 0px; margin-top: 5px; float: left;">所属工种:</label>
                            <div class="col-sm-10">
                                <input th:value="${employeeWork.expectedWork}" data-toggle="modal" data-target="#expectedWork" type="text" class="form-control" id="oneUpdate" name="expectedWork" style="margin-top: 0px; margin-left: 0px;" placeholder="所属工种 ">
                            </div>
                        </div>
                        <div class="form-group col-md-12 ">

                            <label for="oneoUpdate " class="col-sm-2 control-label " style="padding-right: 0px; margin-top: 5px;">工作性质:</label>
                            <div class="col-sm-10 ">
                                <select class="form-control " id="oneoUpdate " name="workNature">
                                    <option value="0" th:selected="${employeeWork.workNature == 0}">兼职</option>
                                    <option value="1" th:selected="${employeeWork.workNature == 1}">长期工</option>
                                    <option value="2" th:selected="${employeeWork.workNature == 2}">高级工</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="oneoUpdate " class="col-sm-2 control-label " style="padding-right: 0px; margin-top: 5px;padding-left: 43px;">地区:</label>
                            <div class="col-sm-10 form-inline" data-toggle="distpicker">
                                <select class="form-control" name="province"></select>
                                <select class="form-control" name="city"></select>
                            </div>

                        </div>
                        <div class="form-group col-md-12 ">

                            <label for="threeUpdate " class="col-sm-2 control-label " style="padding-right: 0px; margin-top: 5px;">人员构成:</label>
                            <div class="col-sm-10 ">
                                <select class="form-control " id="threeUpdate " name="staffComposition" >
                                    <option value="0" th:selected="${employeeWork.staffComposition == 0}">个人</option>
                                    <option value="1" th:selected="${employeeWork.staffComposition == 1}">班组</option>
                                    <option value="2" th:selected="${employeeWork.staffComposition == 2}">施工队</option>
                                    <option value="3" th:selected="${employeeWork.staffComposition == 3}">突击队</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-md-12 ">
                            <label for="fiveUpdate " class="col-sm-2 control-label " style=" padding-right: 0px; margin-top: 5px;">自我介绍:</label>
                            <div class="col-sm-10 ">
                                <textarea class="form-control " rows="3 " id="fiveUpdate " th:text="${employeeWork.myselfDescribe}" name="myselfDescribe" style="resize: none" placeholder="请简要介绍您自己(比如您会做什么，工作经历，期望工资等)，有助于您更快找到合适的工作。 "></textarea>
                            </div>
                        </div>
                        <div class="form-group col-md-12">
                            <div style="display: inline-block; margin-left: 100px;">
                                <input type="submit" value="修 改 " class="btn btn-success btn_save">
                            </div>
                        </div>
                    </form>
                </div>


                <div class="modal-footer">

                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
    <!--修改公司信息-->
    <div th:insert="common/modal :: updateCompany"></div>
    <!--添加项目经验-->
    <div th:insert="common/modal :: addProject_modal"></div>

</div>


<script th:src="@{/js/distpicker.data.js}"></script>
<script th:src="@{/js/distpicker.js}"></script>
<script th:src="@{/js/radioSelect.js}"></script>
<script type="text/javascript">

    var page = 0;

    try {
        let deleteEmployeeProject = document.getElementById("deleteEmployeeProject");
        deleteEmployeeProject.onclick = function () {
            if (window.confirm('您确定要删除该项目经验吗')) {
                return true;
            } else {
                return false;
            }
        }
    } catch (error) {

    }

    try {
        let updateStatu01 = document.getElementById("updateStatu01");
        updateStatu01.onclick = function () {
            if (window.confirm('你确定要修改招工状态吗？')) {
                return true;
            } else {
                return false;
            }
        }
    } catch (error) {

    }

    try {
        let updateStatu02 = document.getElementById("updateStatu02");
        updateStatu02.onclick = function () {
            if (window.confirm('你确定要修改招工状态吗？')) {
                return true;
            } else {
                return false;
            }
        }
    } catch (error) {

    }

    try {
        let deleteCompanyWork = document.getElementById("deleteCompanyWork");
        deleteCompanyWork.onclick = function () {
            if (window.confirm('您确定要删除该招工信息吗')) {
                return true;
            } else {
                return false;
            }
        }
    } catch (error) {

    }

    $(function () {
        $('#myTab li:eq('+page+') a').tab('show');
    });

    // 基本信息
    var bs_btn = document.getElementById("basicShow_btn");
    var info1 = document.getElementById("information1");
    var base_defo = document.getElementById("base_defo");


    try {
        bs_btn.onclick = function() {
            if (bs_btn.value === "修改") {
                info1.className = "hide";
                information2.className = "show";

            } else {
                info1.className = "show";
                information2.className = "hide";
            }
        }
    } catch (error) {

    }

    try {

        base_defo.onclick = function() {
            info1.className = "show";
            information2.className = "hide";
        }
    } catch (error) {

    }

    var c_bt = document.getElementById("c_bt");
    try {
        c_bt.onclick = function () {
            myCompany01.className = "mp_Add gonggong hide";
            myCompany02.className = "mp_show show";
        }
    } catch (error) {

    }

    var c_c = document.getElementById("c_c");
    try {
        c_c.onclick = function () {
            myCompany01.className = "mp_Add gonggong show";
            myCompany02.className = "mp_show hide";
        }
    } catch (error) {

    }

    var m_c = document.getElementById("m_c")
    try {
        m_c.onclick = function () {
            mp1.className = "mp_Add gonggong show";
            mp2.className = "mp_show hide";
        }
    } catch (error) {

    }
    var mp_bt = document.getElementById("mp_bt");
    try {
        mp_bt.onclick = function() {
            mp1.className = "mp_Add gonggong hide";
            mp2.className = "mp_show show";
        }
    } catch (error) {

    }


    // let radio01 = document.getElementById("radio01").getElementsByTagName("input");
    // let text01 = document.getElementById("one");
    // let submit01 = document.getElementById("submit01");
    // submit01.onclick = function() {
    //     for (var i = 0; i < radio01.length; i++) {
    //         if (radio01[i].checked) {
    //             text01.value = radio01[i].value;
    //         }
    //     }
    // }



</script>
</body>
</html>